package com.boang.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.boang.entity.po.SysMenu;
import com.boang.service.SysMenuService;
import com.boang.mapper.SysMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 13813
* @description 针对表【sys_menu(菜单权限表)】的数据库操作Service实现
* @createDate 2025-03-03 16:16:33
*/
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu>
    implements SysMenuService{

    @Autowired
    private SysMenuMapper sysMenuMapper;

    @Override
    public List<SysMenu> getMenusByUserId(int userId) {
        return sysMenuMapper.selectMenusByUserId(userId);
    }
}




